package com.hs.chd.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.hs.chd.dao.IDataDao;
import com.hs.chd.service.IDataService;
import com.hs.core.dao.IBaseDao;
import com.hs.core.service.impl.BaseSevice;
import com.hs.core.utils.PageParam;
import com.hs.core.utils.PageUtil;
//@Service  
public class DataService extends BaseSevice implements IDataService{
    private  IDataDao dataDao;
	@Override
	public IBaseDao getBaseDao() {
		
		return dataDao;
	}
	@Autowired
	public void setSearchDao(IDataDao dataDao) {
		this.dataDao = dataDao;
	}
	@Transactional(readOnly = true)
	public PageUtil getPageList(PageParam pageParam){
		return this.dataDao.getPageList(pageParam);
	}
	public IDataDao getDataDao() {
		return dataDao;
	}
	public void setDataDao(IDataDao dataDao) {
		this.dataDao = dataDao;
	}
	
	 
}
